/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.oea.struts.forms;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

/**
 *
 * @author unnati
 */
public class AddTestForm extends org.apache.struts.action.ActionForm {
    
    private String name,description;
    private Long id,addedby,eid,subid;
    private int cutoffmarks,totalquestions,tdhour,tdminute,tdsecond,tthour,ttminute,ttsecond,day,month,year;
    
    private  float positivemarking,negativemarking;

    public Long getEid() {
        return eid;
    }

    public void setEid(Long eid) {
        this.eid = eid;
    }

    public Long getSubid() {
        return subid;
    }

    public void setSubid(Long subid) {
        this.subid = subid;
    }

    
    
    public Long getAddedby() {
        return addedby;
    }

    public void setAddedby(Long addedby) {
        this.addedby = addedby;
    }

    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTdhour() {
        return tdhour;
    }

    public void setTdhour(int tdhour) {
        this.tdhour = tdhour;
    }

    public int getTdminute() {
        return tdminute;
    }

    public void setTdminute(int tdminute) {
        this.tdminute = tdminute;
    }

    public int getTdsecond() {
        return tdsecond;
    }

    public void setTdsecond(int tdsecond) {
        this.tdsecond = tdsecond;
    }

    public int getTthour() {
        return tthour;
    }

    public void setTthour(int tthour) {
        this.tthour = tthour;
    }

    public int getTtminute() {
        return ttminute;
    }

    public void setTtminute(int ttminute) {
        this.ttminute = ttminute;
    }

    public int getTtsecond() {
        return ttsecond;
    }

    public void setTtsecond(int ttsecond) {
        this.ttsecond = ttsecond;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

   

   

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getCutoffmarks() {
        return cutoffmarks;
    }

    public void setCutoffmarks(int cutoffmarks) {
        this.cutoffmarks = cutoffmarks;
    }

    public int getTotalquestions() {
        return totalquestions;
    }

    public void setTotalquestions(int totalquestions) {
        this.totalquestions = totalquestions;
    }

    public float getPositivemarking() {
        return positivemarking;
    }

    public void setPositivemarking(float positivemarking) {
        this.positivemarking = positivemarking;
    }

    public float getNegativemarking() {
        return negativemarking;
    }

    public void setNegativemarking(float negativemarking) {
        this.negativemarking = negativemarking;
    }

   
    public AddTestForm() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * This is the action called from the Struts framework.
     *
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();
//        if (getName() == null || getName().length() < 1) {
//            errors.add("name", new ActionMessage("error.name.required"));
//            // TODO: add 'error.name.required' key to your resources
//        }
        return errors;
    }
}
